import React from 'react'
import {createFromIconfontCN} from '@ant-design/icons';

interface iconPropType {
    type: string,
    color?: string,
    fontSize?: string
}

export default function IconFont(props: iconPropType) {
    const {type, color = 'rgb(191, 203, 217)', fontSize = '1.8rem'} = props
    return (
        <IconFonts type={'icon-' + type} style={{
            color,
            fontSize,
            fill: color
        }}/>
    );
};
const IconFonts = createFromIconfontCN({
    scriptUrl: '//at.alicdn.com/t/c/font_3670083_9f2myg322rc.js',
});
